package fenyu.personblob.web.model;

import fenyu.personblob.bean.databean.blob.Blob;
import fenyu.personblob.single.SinglePathDoor;

/**
 * create at 2018/12/22 11:55
 *
 * @author 纷羽 <gzj0078@gmail.com>
 */
public class BlobShowSimple {

    private Integer id;

    private String tittle;

    private UserShow send_user;

    public BlobShowSimple(Blob blob) {
        this.tittle = blob.getTittle();
        this.id = blob.getId();
        this.send_user = new UserShow(SinglePathDoor.getSingleSave().getSaveDoor().getUserSavePath().getById(blob.getSend_user()));
    }

    public String getTittle() {
        return tittle;
    }

    public UserShow getSend_user() {
        return send_user;
    }

    public Integer getId() {
        return id;
    }
}
